import type { Tsconfig } from '../types';

export function isSyntheticDefaultImportsAllow(config?: Tsconfig) {
  if (!config) {
    return true;
  }

  return !!(
    config.compilerOptions?.allowSyntheticDefaultImports ??
    config.compilerOptions?.esModuleInterop
  );
}
